import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a005(fd: IFeidaoAiBrowserComponent) {
	//表头复选框
	const all = fd.data.node.querySelector<HTMLInputElement>('[data-id="all"]');
	const ns = fd.data.node.querySelectorAll('[data-id="list"]');
	Array.from(ns).forEach((n: HTMLInputElement) => {
		n.checked = all.checked;//表头表体状态一致
	})
}
